home *** CD-ROM | disk | FTP | other *** search
/ Mac Magazin/MacEasy 32 / Mac Magazin and MacEasy Magazine CD - Issue 32.iso / Grafik & Text / OzTeX3.0 / TeX-inputs / LaTeX / tools / somedefs.sty < prev    next >
Text File  |  1997-03-07  |  2KB  |  62 lines

  1. %%
  2. %% This is file `somedefs.sty',
  3. %% generated with the docstrip utility.
  4. %%
  5. %% The original source files were:
  6. %%
  7. %% somedefs.dtx  (with options: `package')
  8. %% 
  9. %% IMPORTANT NOTICE:
  10. %% 
  11. %% This file is a generated file from the sources of the `tools' bundle
  12. %% in the LaTeX2e distribution.
  13. %% 
  14. %% For the copyright notice see the source file(s).
  15. %% 
  16. %% You are not allowed to modify this file.
  17. %% 
  18. %% You are allowed to distribute this file if and only if
  19. %% it is distributed with the corresponding source files in
  20. %% the `tools' bundle.
  21. %% 
  22. %% For the copying and distribution conditions of the source files,
  23. %% see the file readme.txt distributed with the tools bundle.
  24. %% 
  25. \NeedsTeXFormat{LaTeX2e}
  26. \ProvidesPackage{somedefs}[1994/06/01 Toolkit for optional definitions]
  27. \def\UseSomeDefinitions{%
  28.    \let\ProvidesDefinition\@providesdefinition
  29. }
  30. \def\UseAllDefinitions{%
  31.    \let\ProvidesDefinition\@firstofone
  32. }
  33. \def\UseDefinition#1{%
  34.    \expandafter\let\csname#1\endcsname\@unprovided@definition
  35. }
  36. \def\ProvidesDefinition#1{%
  37.    \PackageError{somedefs}%
  38.      {No \noexpand\UseSomeDefinitions or \string\UseAllDefinitions}%
  39.      {The package which used the `somedefs' package has an error.}%
  40. }
  41. \def\@providesdefinition#1{\@provides@definition#1\relax
  42.    \@provides@definition}
  43. \def\@provides@definition#1#2#3\@provides@definition{%
  44.    \ifx#2\@unprovided@definition
  45.       #1#2#3%
  46.    \fi
  47. }
  48. \def\@unprovided@definition{%
  49.    \PackageError{somedefs}%
  50.      {Package `somedefs' error: this command was never defined}%
  51.      {You have requested a command which does not exist.}%
  52. }
  53. \@onlypreamble\UseSomeDefinitions
  54. \@onlypreamble\UseAllDefinitions
  55. \@onlypreamble\UseDefinition
  56. \@onlypreamble\ProvidesDefinition
  57. \@onlypreamble\@providesdefinition
  58. \@onlypreamble\@provides@definition
  59. \endinput
  60. %%
  61. %% End of file `somedefs.sty'.
  62.